package com.markhsiu.store.disk;

import java.nio.ByteBuffer;

//官方的消息大小2K多
// 16k good == short 
public class Cache {

	public static final int BUFF = 16 * 1024; ;
	private static  final int SIZE  = BUFF; 
	
	
	public Cache(){}
	
	public ByteBuffer buffer; 
	public byte[] buff = new byte[SIZE] ;
	public byte[] temp = new  byte[SIZE];
	public int offset = 0;
	public int mark = -1;
	 
	 public void clear(){
		 offset = 0;
		 mark = -1;
	 }
	 
}
